<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>课程详情</title>
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/public.css">
    <link rel="stylesheet" href="./layer/theme/default/layerui.css">
    <script src="js/jquery.js"></script>
    <script src="js/template/template-web.js"></script>
    <script src="./layer/layer.js"></script>
    <script src="js/header.js"></script>
    <script src="js/commit.js"></script>
</head>
<body>
<div class="free_box clearfix" >
    <div id="goods" class=" clearfix">
        <script type="text/html" id="goodsTpl">
        <div class="info_box_img" data_id = "{{res.id}}">
            <img src="{{res.goods_img}}" width="350" height="350" alt="">
        </div>
        <div class="info_box_txt">
            <span class="goods_name">{{res.name}}</span>
            <span class="goods_der">{{res.description}}</span>
            <span>类别 ： {{res.assort}}</span>
            <span>原价 ： <em style="text-decoration: line-through;color:#ccc;">{{res.original_price}}</em></span>
            <span>现价 ： {{res.current_price}}</span>
            {{if res.button_display}}
            <span class="gm_btn xx_from"><a href="javascript:;">立即学习</a></span>
            {{else}}
            <span class="gm_btn gm_form"><a href="javascript:;">立即购买</a></span>
            {{/if}}
        </div>

        <div class="info_table">
            <table class="layui-table" lay-even="" lay-skin="row">
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <thead>
                    <tr>
                        <th>列表</th>
                        {{if res.assort == '视频'}}
                            <th>描述</th>
                        {{/if}}

                    </tr>
                </thead>
                <tbody>
                    {{each res.with_goods_assoc as item index}}
                    <tr>
                        <td>{{item.name}}</td>
                        {{if res.assort == '视频'}}
                            <td>{{item.description}}</td>
                        {{/if}}
                    </tr>
                    {{/each}}
                </tbody>
            </table>
        </div>


        </script>
    </div>



</div>
<div class="index_footer_div_3" id="footer"></div>
<script>$("#footer").load("./footer.html");</script>

<script src="js/info.js"></script>

</body>
</html>